<%--
  Created by IntelliJ IDEA.
  User: JXY
  Date: 2024/9/18
  Time: 9:27
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" import="java.util.*" %>
<html>
<head>
    <title>使用request内置对象</title>
</head>
<body bgcolor="#ccffcc">
    <h1>您刚刚输入的内容是:</h1>
<%
    Enumeration enu = request.getParameterNames();
    // 循环获取到的参数名称
    while (enu.hasMoreElements()){
        String parameterName = (String)enu.nextElement();//获取当前循环对应的参数名
        String parameterValue = request.getParameter(parameterName);
        out.print("参数名称:"+ parameterName + "<br>");
        out.print("参数内容:"+ parameterValue + "<br>");
    }
%>
</body>
</html>
